package org.proxywars.engine.rts;

public class EGroupJoinException extends Exception {
	private static final long serialVersionUID = 1L;
	private final IUnitGroup group;
	private final IUnit unit;

	public EGroupJoinException( IUnitGroup group, IUnit unit, String reason )
	{
		super(reason);
		this.group = group;
		this.unit = unit;
	}

	public IUnitGroup getGroup() {
		return group;
	}

	public IUnit getUnit() {
		return unit;
	}
}
